﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Group_Project_Book_Store
{
    /// <summary>
    /// Class or category of a item/book
    /// </summary>
    class clsCategory
    {
        /// <summary>
        /// Unique ID for the item in the system
        /// </summary>
        public int typeID { get; set; }
        /// <summary>
        /// Name of the type
        /// </summary>
        public string categoryName { get; set; }
        /// <summary>
        /// Description of the type, is optional
        /// </summary>
        public string categoryDescription { get; set; }
        /// <summary>
        /// over ride method retun Category Name
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            try
            {
                return categoryName;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return null;
            }
        }
    }
}
